import java.util.Arrays;
import java.util.Collections;
import java.util.List;


public class CollectDemo {
    public static void main(String[] args) {
        Integer[] array = {12,38,23,89,43};
        List<Integer> list=Arrays.asList(array);//将数组转换为List集合
        Collections.sort(list);//List<T>
        System.out.println(list);


    }
}
